<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel panel-default panel-intro">
        <div class="panel-heading"><div class="panel-lead"><em>{:__('盒子所属人信息')}</em></div></div>
        <div class="panel-body">
            <table class="table table-striped table-bordered table-hover table-nowrap">
                <thead>
                    <tr>
                        <th>用户ID</th>
                        <th>联系人</th>
                        <th>联系电话</th>
                        <th>所在城市</th>
                        <th>所在小区</th>
                        <th>备注</th> 
                        <th>盒子编号(请勿选择相同编号盒子)</th> 
                    </tr>
                </thead>
                <tbody>
                    {volist name="list" id="vo"}
                    <tr>
                        <td>
                            {$vo.user_id}
                        </td>
                        <td>
                            {$vo.contacts}
                        </td>
                        <td>
                            {$vo.telephone}
                        </td>
                        <td>
                            {$vo.province_name}-{$vo.city_name}-{$vo.area_name}
                        </td>
                        <td>
                            {$vo.quarters_name}-{$vo.unit_name}-{$vo.room_name}
                        </td>
                        <td>
                            <input type="text" name="infos[{$vo.user_box_id}][admin_remark]">
                        </td>
                        <td>
                            <select clss="form-control sel-box" name="infos[{$vo.user_box_id}][box_id]" data-user-box="{$vo.user_box_id}">
                                <option value="0">请选择</option>
                                {volist name="box_list" id="box"}
                                <option value="{$box.box_id}">{$box.box_no}</option>
                                {/volist}
                            </select>
                        </td>

                    </tr>
                    {/volist}
                </tbody>
            </table>
        </div>

    </div>

    <div class="panel panel-default panel-intro">
        <div class="panel-heading"><div class="panel-lead"><em>{:__('盒子商品信息')}</em></div></div>
        <div class="panel-body">
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane fade active in" id="first">
                    <div class="widget-body no-padding">
                        <div id="toolbar1" class="toolbar">
                            <a href="javascript:;" class="btn btn-success btn-addgoods" title="添加商品"><i class="fa"></i>添加商品</a>
                        </div>
                        <table id="table" class="table table-striped table-bordered table-hover" width="100%" ids="{$ids}">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed ">{:__('保存')}</button>
        </div>
    </div>
</form>

